import { createRouter, createWebHashHistory } from 'vue-router';
import 'nprogress/nprogress.css'; // 进度条样式
import { createRouterGuards } from './router-guards';

const ghktRouter = [
  {
    path: '/',
    component: () => import('@/views/homePage/homePage.vue'),
  },
];

const router = createRouter({
  history: createWebHashHistory(),
  routes: ghktRouter,
});

export function setupRouter(app) {
  app.use(router);
  // 创建路由守卫
  createRouterGuards(router);
}

export default router;
